<template>
  <div>
    <el-breadcrumb>
      <el-breadcrumb-item>首页</el-breadcrumb-item>
      <el-breadcrumb-item v-breadcrumb-certify></el-breadcrumb-item>
    </el-breadcrumb>
    <div class="content">
        <e-heading>服务列表</e-heading>
        <el-tabs :value="type" @tab-click="handleTabs">
          <el-tab-pane label="已上架" name="underway"></el-tab-pane>
          <el-tab-pane label="已下架" name="store"></el-tab-pane>
          <el-tab-pane label="审核中" name="check"></el-tab-pane>
          <el-tab-pane label="未通过" name="fail"></el-tab-pane>
        </el-tabs>
        <router-view :key="type"></router-view>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {}
  },
  computed: {
    type () {
      return this.$route.params.type || 'underway'
    }
  },
  methods: {
    handleTabs (value) {
      this.$router.push({path: '/service/list/' + value.name})
    }
  }
}
</script>
<style lang="scss">
</style>
